package cn.edu.ncc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static  void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
        Student s = (Student)ac.getBean(Student.class);
        //Student s = ac.getBean("student", IStudentDao.class);
        s.study();
    }

}
